package com.atguigu.product.products.dao;

import com.atguigu.product.products.entity.PmsAttrEntity;
import com.atguigu.product.products.entity.PmsAttrGroupEntity;
import com.atguigu.product.products.vo.respVo.item.SpuItemAttrGroupVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性分组
 * 
 * @author qhw
 * @email qhw@gmail.com
 * @date 2021-08-03 19:57:10
 */
@Mapper
public interface PmsAttrGroupDao extends BaseMapper<PmsAttrGroupEntity> {

    List<PmsAttrEntity> noattrRelation(@Param("groupIds") List<Long> groupIds, @Param("catelogId") Long catelogId);

    List<SpuItemAttrGroupVo> queryGroupWithAttrs(@Param("spuId") Long spuId, @Param("catalogId") Long catalogId);
}
